#ifndef TANGRAMWIDGET_H
#define TANGRAMWIDGET_H

#include <QWidget>
#include <QtGui>
#include "mygraphicsscene.h"

class TangramWidget : public QWidget
{
    Q_OBJECT

public:
    explicit TangramWidget(QWidget *parent = 0);
    void setSize(int s);
    int size();
    QGraphicsView *view;
    MyGraphicsScene *scene;

signals:
    
public slots:

protected:
    void contextMenuEvent(QContextMenuEvent * event);
    //void mousePressEvent(QMouseEvent * event);
    //void mouseReleaseEvent(QMouseEvent * event);

private:
    void populateScene();
    int s;
    QGraphicsPolygonItem *itemA;
    QGraphicsPolygonItem *itemB;
    QGraphicsPolygonItem *itemC;
    QGraphicsPolygonItem *itemD;
    QGraphicsPolygonItem *itemE;
    QGraphicsPolygonItem *itemF;
    QGraphicsPolygonItem *itemG;
    QGraphicsPolygonItem *selectedItem;
    
};

#endif // TANGRAMWIDGET_H
